import ajax from './ajax'
import mockAjax from './mockAjax'
// 这个文件是专门用来放发请求的函数的
const reqCatalogList=()=>{
    return ajax.get('/api/product/getBaseCategoryList') 
}
const reqSearchList=(query)=>{

    return ajax.post('/api/list',query)
}
const reqBannerList=()=>{
    return mockAjax.get('/banner')
}
const reqFloorList=()=>{
     return mockAjax.get('/floor')
}
export {reqSearchList,reqCatalogList,reqBannerList,reqFloorList}